190 PRINT : HTAB 5: PRINT "HOW MANY WORDS WILL BE IN YOUR": HTAB 5: INPUT "SENTENCE? ";N$:N = VAL(N$): IF N = 0 THEN 190
200 PRINT : HTAB 5: PRINT "TYPE ONE WORD AT A TIME AND": HTAB 5: PRINT "THEN PRESS THE 'RETURN' KEY.": PRINT
210 DIM X$(N)
220 FOR I = 1 TO N: HTAB 5: PRINT "WORD ";I;: INPUT ": ";X$(I): NEXT I
230 PRINT : HTAB 5: PRINT "WHAT PUNCTUATION DO YOU WANT": HTAB 5: INPUT "AT THE END? ";P$: PRINT : PRINT
240 IF P$ < >"." AND P$ < >"!" AND P$ < >"?" THEN 230
250 FOR I = 1 TO N
260 REM IS THE FIRST LETTER OF THIS WORD A VOWEL?
270 IF LEFT$(X$(I),1) = "A" OR LEFT$(X$(I),1) = "E" OR LEFT$(X$(I),1) = "I" OR LEFT$(X$(I),1) = "O" OR LEFT$(X$(I),1) = "U" THEN 510
280 REM IS THE SECOND LETTER OF THIS WORD A VOWEL?
290 IF MID$ (X$(I),2,1) = "A" OR MID$ (X$(I),2,1) = "E" OR MID$ (X$(I),2,1) = "I" OR MID$ (X$(I),2,1) = "O" OR MID$ (X$(I),2,1) = "U" OR MID$ (X$(I),2,1) = "Y" THEN 530
300 REM IS THE THIRD LETTER OF THIS WORD A VOWEL?
310 IF MID$ (X$(I),3,1) = "A" OR MID$ (X$(I),3,1) = "E" OR MID$ (X$(I),3,1) = "I" OR MID$ (X$(I),3,1) = "O" OR MID$ (X$(I),3,1) = "U" OR MID$ (X$(I),3,1) = "Y" THEN 550
320 IF MID$ (X$(I),4,1) = "A" OR MID$ (X$(I),4,1) = "E" OR MID$ (X$(I),4,1) = "I" OR MID$ (X$(I),4,1) = "O" OR MID$ (X$(I),4,1) = "U" OR MID$ (X$(I),4,1) = "Y" THEN 570
330 REM WORD MUST BE TYPED WRONG
340 GOTO 590
350 NEXT I
360 REM CHECK CURSOR POSITION, MOVE IT BACK ONE SPACE AND PRINT PUNCTUATION
370 CH = PEEK(36): POKE 36,CH -1: PRINT P$
380 PRINT : PRINT "THERE! WASN'T THAT CLEVER OF ME!"
390 PRINT : INPUT "DO YOU WANT TO DO ANOTHER SENTENCE? ";A$
400 IF LEFT$(A$,1) = "Y" THEN HOME : RUN 190
410 IF LEFT$(A$,1) < >"N" THEN 390
420 PRINT : PRINT "EESAY OUYAY ATERLAY!!"
430 END
500 REM THE WORD STARTS WITH A VOWEL, ADD 'WAY' TO THE END OF THE WORD
510 PRINT X$(I) +"WAY ";: GOTO 350
520 REM THE WORD STARTS WITH A SINGLE CONSONANT, MOVE THE CONSONANT TO THE END OF THE WORD AND ADD 'AY'